package com.huohuzhihui.merchant.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.huohuzhihui.common.annotation.Excel;
import com.huohuzhihui.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 套餐商品对象 goods
 *
 * @author huohuzhihui
 * @date 2021-06-01
 */
public class Goods extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    private Long agentId;

    /**
     * 商品名
     */
    @Excel(name = "商品名")
    private String name;

    /**
     * 视频数量
     */
    @Excel(name = "视频数量")
    private Integer videoCount;

    /**
     * 现价
     */
    @Excel(name = "现价")
    private BigDecimal price;

    /**
     * 原价
     */
    @Excel(name = "原价")
    private BigDecimal marketPrice;

    /**
     * 状态：0，生效中；1已失效
     */
    @Excel(name = "状态：0，生效中；1已失效")
    private Integer status;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setVideoCount(Integer videoCount) {
        this.videoCount = videoCount;
    }

    public Integer getVideoCount() {
        return videoCount;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setMarketPrice(BigDecimal marketPrice) {
        this.marketPrice = marketPrice;
    }

    public BigDecimal getMarketPrice() {
        return marketPrice;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public Long getAgentId() {
        return agentId;
    }

    public void setAgentId(Long agentId) {
        this.agentId = agentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("videoCount", getVideoCount())
                .append("price", getPrice())
                .append("marketPrice", getMarketPrice())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
